package com.itheima.homework8.secondwork;

public class Car {
    private String name;
    private double price;
    private int saleNumber;

    @Override
    public String toString() {
        return "Car{" +
                "name='" + name + '\'' +
                ", price=" + price +
                ", saleNumber=" + saleNumber +
                '}';
    }

    public Car() {
    }

    public Car(String name, double price, int saleNumber) {
        this.name = name;
        this.price = price;
        this.saleNumber = saleNumber;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getSaleNumber() {
        return saleNumber;
    }

    public void setSaleNumber(int saleNumber) {
        this.saleNumber = saleNumber;
    }
}
